import { parseTime } from '@/utils'
export const tableColumn = (page, size) => {
  return [
    {
      key: 'content',
      label: '子任务内容',
      minWidth: 120
    },
    {
      key: 'receiverDesc',
      label: '执行人',
      minWidth: 80
    },
    {
      key: 'status',
      label: '任务状态',
      minWidth: 100,
      render: (_, record) => (record.row.status === 1 ? '已完成' : '未完成')
    },
    {
      type: 'date',
      key: 'createtime',
      label: '创建时间',
      minWidth: 80,
      render: (h, scope) => parseTime(scope.row.createTime)
    },
    {
      type: 'date',
      key: 'deadlineTime',
      label: '截止时间',
      minWidth: 100,
      render: (h, scope) => parseTime(scope.row.createTime)
    }
  ]
}
